package tgc.edu.exam.service;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import tgc.edu.exam.custom.CommonService;
import tgc.edu.exam.entity.User;
import tgc.edu.exam.repository.UserRepository;

@Service
public class UserService extends CommonService<User, Integer>{

	@Autowired
	private UserRepository dao;
	
	public User findByUsername(String username) {
		return dao.findByUsername(username);
	}

}
